package com.tchy.cloud.entity;

import javax.persistence.*;

import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "g_job_minor", schema = "", catalog = "")
public class GJobMinorEntity {
    private Long taskId;
    private String minorLinkRule;
    private String minorLinkParam;
    private String initRule;
    private String conditional;
    private Integer linkType;
    private String minorAttribute;
    private Date createTime;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "task_id")
    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    @Basic
    @Column(name = "minorLinkRule")
    public String getMinorLinkRule() {
        return minorLinkRule;
    }

    public void setMinorLinkRule(String minorLinkRule) {
        this.minorLinkRule = minorLinkRule;
    }

    @Basic
    @Column(name = "minorLinkParam")
    public String getMinorLinkParam() {
        return minorLinkParam;
    }

    public void setMinorLinkParam(String minorLinkParam) {
        this.minorLinkParam = minorLinkParam;
    }

    @Basic
    @Column(name = "initRule")
    public String getInitRule() {
        return initRule;
    }

    public void setInitRule(String initRule) {
        this.initRule = initRule;
    }

    @Basic
    @Column(name = "conditional")
    public String getConditional() {
        return conditional;
    }

    public void setConditional(String conditional) {
        this.conditional = conditional;
    }

    @Basic
    @Column(name = "link_type")
    public Integer getLinkType() {
        return linkType;
    }

    public void setLinkType(Integer linkType) {
        this.linkType = linkType;
    }

    @Basic
    @Column(name = "minorAttribute")
    public String getMinorAttribute() {
        return minorAttribute;
    }

    public void setMinorAttribute(String minorAttribute) {
        this.minorAttribute = minorAttribute;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
